package study.service.web;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import study.domain.user.User;
import study.web.security.SecuritySupport;

@Service
public class SessionService {

	@Resource(name = "securitySupport")
	private SecuritySupport securitySupport;

	/**
	 * 현재 세션의 사용자를 반환한다.
	 */
	public User getCurrentUser() {
		return securitySupport.getSessionUser();
	}
}
